class PddCateModelEntity {
	List<PddCateModelData> data;
	int code;
	String msg;

	PddCateModelEntity({this.data, this.code, this.msg});

	PddCateModelEntity.fromJson(Map<String, dynamic> json) {
		if (json['data'] != null) {
			data = new List<PddCateModelData>();
			(json['data']['list'] as List).forEach((v) { data.add(new PddCateModelData.fromJson(v)); });
		}
		code = json['code'];
		msg = json['msg'];
	}

	Map<String, dynamic> toJson() {
		final Map<String, dynamic> data = new Map<String, dynamic>();
		if (this.data != null) {
      data['data']['list'] = this.data.map((v) => v.toJson()).toList();
    }
		data['code'] = this.code;
		data['msg'] = this.msg;
		return data;
	}
}

class PddCateModelData {
String pdd_cat_id	;//商品分类ID
String name	;//商品分类名称
String icon	;//商品分类图标
String sort;//	排序 数字越大越在前
String is_show;//	是否显示 Y显示 N不显示
String pid	;//父级分类ID
String pdd_id	;//拼多多官方分类ID

	PddCateModelData({this.pdd_cat_id, this.name, this.icon, this.pid,this.pdd_id,});

	PddCateModelData.fromJson(Map<String, dynamic> json) {
		pdd_cat_id = json['pdd_cat_id'];
    name=json['name'];
		icon = json['icon'];
		pid = json['pid'];
    pdd_id = json['pdd_id'];
	}

	Map<String, dynamic> toJson() {
		final Map<String, dynamic> data = new Map<String, dynamic>();
		data['pdd_cat_id'] = this.pdd_cat_id;
		data['name'] = this.name;
		data['icon'] = this.icon;
		data['pid'] = this.pid;
    data['pdd_id'] = this.pdd_id;
		return data;
	}
}